package com.qf.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class VoGoods {
    private Integer gid;
    private String gname;
    private Float price;
    private Integer num;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date pubdate;//String--Date之间转换
    private String pic;
}
